using System;
using ETestIT.Core;
using FluentNHibernate.AutoMap;
using FluentNHibernate.AutoMap.Alterations;

namespace ETestIT.Data.NHibernateMaps
{
    public class PositionMappingOverride : IAutoMappingOverride<Position>
    {
        public void Override(AutoMap<Position> mapping)
        {
            mapping.Map(x => x.Description).WithLengthOf(5000);
            mapping.Map(x => x.KeySkills).WithLengthOf(2000);
        }
    }
}